package main

import "fmt"

func main() {
	//%d 表示整形数字， %s表示字符串
	var str = 123
	var date = "2022-5-23"
	var url = "Code=%d&endDate=%s"
	var target_url = fmt.Sprintf(url, str, date)
	fmt.Println(target_url)
}
